//公共
import myHeader from "/pages/headerfoot/pages/header.vue"
//cache缓存
import Cache from '@/utils/cache.js';
//打帮赛方法
import hitmatchcommon from '@/common/hitmatchcommon.js';
//基础
import Base from '@/common/base.js'

export default {
	components: {
		myHeader,
	},
	data() {
		return {
			informationfilling: '荣誉详情',
			mylist:[],//列表
			Base:Base,//基础
			make_id:'',//赛事
		}
	},
	onLoad(option='') {
		var that = this;
		that.make_id=option.id;
		that.getMakeRanking(); //得到列id;表
	},
	methods: {
		//获取赛事排行
		async getMakeRanking() {
			var that = this;
			var data = {};
			data['make_id']=that.make_id;
			data['page']=that.page;
			data['make_user_id']=Cache.get('user_id');
			hitmatchcommon.getMakeRankingLibMethod(data).then(res => {
				if (res) {
					   that.mylist =res.makeUser;//我的列表
				}
			});
		},
	}
}